package com.senyint.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository("queueDao")
public class QueueDaoImpl implements QueueDao {
    
 // mybatis
    @Autowired
    protected SqlSession sqlSessionQueue;

    public SqlSession getSqlSessionQueue() {
        return sqlSessionQueue;
    }

    public void setSqlSessionQueue(SqlSession sqlSessionQueue) {
        this.sqlSessionQueue = sqlSessionQueue;
    }

	@Override
	public int deleteQueue(Map<String, Object> param) {
		// TODO Auto-generated method stub
		return sqlSessionQueue.delete("queue.deleteQueue",param);
	}

	@Override
	public int updateQueue(Map<String, String> param) {
		// TODO Auto-generated method stub
		return sqlSessionQueue.update("queue.updateQueue", param);
	}

}
